package qldc.pm.tienan.model;

import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.ProxyUtil;
import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.model.impl.BaseModelImpl;

import qldc.pm.tienan.service.ClpSerializer;
import qldc.pm.tienan.service.LichAnXoaAnTichLocalServiceUtil;

import java.io.Serializable;

import java.lang.reflect.Method;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;


public class LichAnXoaAnTichClp extends BaseModelImpl<LichAnXoaAnTich>
    implements LichAnXoaAnTich {
    private long _lichAnXoaAnTichId;
    private long _tienAnId;
    private long _nguoiLapHoSoXoaAnTichId;
    private Date _ngayLapHoSoXoaAnTich;
    private String _nguoiYeuCauXoaAnTich;
    private Date _ngayYeuCauXoaAnTich;
    private long _nguoiThucHienXoaAnTichTrongDuLieuID;
    private Date _ngayKyDuyetXoaAnTich;
    private String _maHoSoXoaAnTich;
    private String _chuThich;
    private String _kinhGui;
    private String _hinhPhat;
    private String _coQuanThiHanhAn;
    private String _soQuyetDinhThiHanhAn;
    private Date _ngayQuyetDinhThiHanhAn;
    private String _hoVaTenDoiTuongTienAn;
    private BaseModel<?> _lichAnXoaAnTichRemoteModel;

    public LichAnXoaAnTichClp() {
    }

    @Override
    public Class<?> getModelClass() {
        return LichAnXoaAnTich.class;
    }

    @Override
    public String getModelClassName() {
        return LichAnXoaAnTich.class.getName();
    }

    @Override
    public long getPrimaryKey() {
        return _lichAnXoaAnTichId;
    }

    @Override
    public void setPrimaryKey(long primaryKey) {
        setLichAnXoaAnTichId(primaryKey);
    }

    @Override
    public Serializable getPrimaryKeyObj() {
        return _lichAnXoaAnTichId;
    }

    @Override
    public void setPrimaryKeyObj(Serializable primaryKeyObj) {
        setPrimaryKey(((Long) primaryKeyObj).longValue());
    }

    @Override
    public Map<String, Object> getModelAttributes() {
        Map<String, Object> attributes = new HashMap<String, Object>();

        attributes.put("lichAnXoaAnTichId", getLichAnXoaAnTichId());
        attributes.put("tienAnId", getTienAnId());
        attributes.put("nguoiLapHoSoXoaAnTichId", getNguoiLapHoSoXoaAnTichId());
        attributes.put("ngayLapHoSoXoaAnTich", getNgayLapHoSoXoaAnTich());
        attributes.put("nguoiYeuCauXoaAnTich", getNguoiYeuCauXoaAnTich());
        attributes.put("ngayYeuCauXoaAnTich", getNgayYeuCauXoaAnTich());
        attributes.put("nguoiThucHienXoaAnTichTrongDuLieuID",
            getNguoiThucHienXoaAnTichTrongDuLieuID());
        attributes.put("ngayKyDuyetXoaAnTich", getNgayKyDuyetXoaAnTich());
        attributes.put("maHoSoXoaAnTich", getMaHoSoXoaAnTich());
        attributes.put("chuThich", getChuThich());
        attributes.put("kinhGui", getKinhGui());
        attributes.put("hinhPhat", getHinhPhat());
        attributes.put("coQuanThiHanhAn", getCoQuanThiHanhAn());
        attributes.put("soQuyetDinhThiHanhAn", getSoQuyetDinhThiHanhAn());
        attributes.put("ngayQuyetDinhThiHanhAn", getNgayQuyetDinhThiHanhAn());
        attributes.put("hoVaTenDoiTuongTienAn", getHoVaTenDoiTuongTienAn());

        return attributes;
    }

    @Override
    public void setModelAttributes(Map<String, Object> attributes) {
        Long lichAnXoaAnTichId = (Long) attributes.get("lichAnXoaAnTichId");

        if (lichAnXoaAnTichId != null) {
            setLichAnXoaAnTichId(lichAnXoaAnTichId);
        }

        Long tienAnId = (Long) attributes.get("tienAnId");

        if (tienAnId != null) {
            setTienAnId(tienAnId);
        }

        Long nguoiLapHoSoXoaAnTichId = (Long) attributes.get(
                "nguoiLapHoSoXoaAnTichId");

        if (nguoiLapHoSoXoaAnTichId != null) {
            setNguoiLapHoSoXoaAnTichId(nguoiLapHoSoXoaAnTichId);
        }

        Date ngayLapHoSoXoaAnTich = (Date) attributes.get(
                "ngayLapHoSoXoaAnTich");

        if (ngayLapHoSoXoaAnTich != null) {
            setNgayLapHoSoXoaAnTich(ngayLapHoSoXoaAnTich);
        }

        String nguoiYeuCauXoaAnTich = (String) attributes.get(
                "nguoiYeuCauXoaAnTich");

        if (nguoiYeuCauXoaAnTich != null) {
            setNguoiYeuCauXoaAnTich(nguoiYeuCauXoaAnTich);
        }

        Date ngayYeuCauXoaAnTich = (Date) attributes.get("ngayYeuCauXoaAnTich");

        if (ngayYeuCauXoaAnTich != null) {
            setNgayYeuCauXoaAnTich(ngayYeuCauXoaAnTich);
        }

        Long nguoiThucHienXoaAnTichTrongDuLieuID = (Long) attributes.get(
                "nguoiThucHienXoaAnTichTrongDuLieuID");

        if (nguoiThucHienXoaAnTichTrongDuLieuID != null) {
            setNguoiThucHienXoaAnTichTrongDuLieuID(nguoiThucHienXoaAnTichTrongDuLieuID);
        }

        Date ngayKyDuyetXoaAnTich = (Date) attributes.get(
                "ngayKyDuyetXoaAnTich");

        if (ngayKyDuyetXoaAnTich != null) {
            setNgayKyDuyetXoaAnTich(ngayKyDuyetXoaAnTich);
        }

        String maHoSoXoaAnTich = (String) attributes.get("maHoSoXoaAnTich");

        if (maHoSoXoaAnTich != null) {
            setMaHoSoXoaAnTich(maHoSoXoaAnTich);
        }

        String chuThich = (String) attributes.get("chuThich");

        if (chuThich != null) {
            setChuThich(chuThich);
        }

        String kinhGui = (String) attributes.get("kinhGui");

        if (kinhGui != null) {
            setKinhGui(kinhGui);
        }

        String hinhPhat = (String) attributes.get("hinhPhat");

        if (hinhPhat != null) {
            setHinhPhat(hinhPhat);
        }

        String coQuanThiHanhAn = (String) attributes.get("coQuanThiHanhAn");

        if (coQuanThiHanhAn != null) {
            setCoQuanThiHanhAn(coQuanThiHanhAn);
        }

        String soQuyetDinhThiHanhAn = (String) attributes.get(
                "soQuyetDinhThiHanhAn");

        if (soQuyetDinhThiHanhAn != null) {
            setSoQuyetDinhThiHanhAn(soQuyetDinhThiHanhAn);
        }

        Date ngayQuyetDinhThiHanhAn = (Date) attributes.get(
                "ngayQuyetDinhThiHanhAn");

        if (ngayQuyetDinhThiHanhAn != null) {
            setNgayQuyetDinhThiHanhAn(ngayQuyetDinhThiHanhAn);
        }

        String hoVaTenDoiTuongTienAn = (String) attributes.get(
                "hoVaTenDoiTuongTienAn");

        if (hoVaTenDoiTuongTienAn != null) {
            setHoVaTenDoiTuongTienAn(hoVaTenDoiTuongTienAn);
        }
    }

    @Override
    public long getLichAnXoaAnTichId() {
        return _lichAnXoaAnTichId;
    }

    @Override
    public void setLichAnXoaAnTichId(long lichAnXoaAnTichId) {
        _lichAnXoaAnTichId = lichAnXoaAnTichId;

        if (_lichAnXoaAnTichRemoteModel != null) {
            try {
                Class<?> clazz = _lichAnXoaAnTichRemoteModel.getClass();

                Method method = clazz.getMethod("setLichAnXoaAnTichId",
                        long.class);

                method.invoke(_lichAnXoaAnTichRemoteModel, lichAnXoaAnTichId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getTienAnId() {
        return _tienAnId;
    }

    @Override
    public void setTienAnId(long tienAnId) {
        _tienAnId = tienAnId;

        if (_lichAnXoaAnTichRemoteModel != null) {
            try {
                Class<?> clazz = _lichAnXoaAnTichRemoteModel.getClass();

                Method method = clazz.getMethod("setTienAnId", long.class);

                method.invoke(_lichAnXoaAnTichRemoteModel, tienAnId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNguoiLapHoSoXoaAnTichId() {
        return _nguoiLapHoSoXoaAnTichId;
    }

    @Override
    public void setNguoiLapHoSoXoaAnTichId(long nguoiLapHoSoXoaAnTichId) {
        _nguoiLapHoSoXoaAnTichId = nguoiLapHoSoXoaAnTichId;

        if (_lichAnXoaAnTichRemoteModel != null) {
            try {
                Class<?> clazz = _lichAnXoaAnTichRemoteModel.getClass();

                Method method = clazz.getMethod("setNguoiLapHoSoXoaAnTichId",
                        long.class);

                method.invoke(_lichAnXoaAnTichRemoteModel,
                    nguoiLapHoSoXoaAnTichId);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getNgayLapHoSoXoaAnTich() {
        return _ngayLapHoSoXoaAnTich;
    }

    @Override
    public void setNgayLapHoSoXoaAnTich(Date ngayLapHoSoXoaAnTich) {
        _ngayLapHoSoXoaAnTich = ngayLapHoSoXoaAnTich;

        if (_lichAnXoaAnTichRemoteModel != null) {
            try {
                Class<?> clazz = _lichAnXoaAnTichRemoteModel.getClass();

                Method method = clazz.getMethod("setNgayLapHoSoXoaAnTich",
                        Date.class);

                method.invoke(_lichAnXoaAnTichRemoteModel, ngayLapHoSoXoaAnTich);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getNguoiYeuCauXoaAnTich() {
        return _nguoiYeuCauXoaAnTich;
    }

    @Override
    public void setNguoiYeuCauXoaAnTich(String nguoiYeuCauXoaAnTich) {
        _nguoiYeuCauXoaAnTich = nguoiYeuCauXoaAnTich;

        if (_lichAnXoaAnTichRemoteModel != null) {
            try {
                Class<?> clazz = _lichAnXoaAnTichRemoteModel.getClass();

                Method method = clazz.getMethod("setNguoiYeuCauXoaAnTich",
                        String.class);

                method.invoke(_lichAnXoaAnTichRemoteModel, nguoiYeuCauXoaAnTich);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getNgayYeuCauXoaAnTich() {
        return _ngayYeuCauXoaAnTich;
    }

    @Override
    public void setNgayYeuCauXoaAnTich(Date ngayYeuCauXoaAnTich) {
        _ngayYeuCauXoaAnTich = ngayYeuCauXoaAnTich;

        if (_lichAnXoaAnTichRemoteModel != null) {
            try {
                Class<?> clazz = _lichAnXoaAnTichRemoteModel.getClass();

                Method method = clazz.getMethod("setNgayYeuCauXoaAnTich",
                        Date.class);

                method.invoke(_lichAnXoaAnTichRemoteModel, ngayYeuCauXoaAnTich);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public long getNguoiThucHienXoaAnTichTrongDuLieuID() {
        return _nguoiThucHienXoaAnTichTrongDuLieuID;
    }

    @Override
    public void setNguoiThucHienXoaAnTichTrongDuLieuID(
        long nguoiThucHienXoaAnTichTrongDuLieuID) {
        _nguoiThucHienXoaAnTichTrongDuLieuID = nguoiThucHienXoaAnTichTrongDuLieuID;

        if (_lichAnXoaAnTichRemoteModel != null) {
            try {
                Class<?> clazz = _lichAnXoaAnTichRemoteModel.getClass();

                Method method = clazz.getMethod("setNguoiThucHienXoaAnTichTrongDuLieuID",
                        long.class);

                method.invoke(_lichAnXoaAnTichRemoteModel,
                    nguoiThucHienXoaAnTichTrongDuLieuID);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getNgayKyDuyetXoaAnTich() {
        return _ngayKyDuyetXoaAnTich;
    }

    @Override
    public void setNgayKyDuyetXoaAnTich(Date ngayKyDuyetXoaAnTich) {
        _ngayKyDuyetXoaAnTich = ngayKyDuyetXoaAnTich;

        if (_lichAnXoaAnTichRemoteModel != null) {
            try {
                Class<?> clazz = _lichAnXoaAnTichRemoteModel.getClass();

                Method method = clazz.getMethod("setNgayKyDuyetXoaAnTich",
                        Date.class);

                method.invoke(_lichAnXoaAnTichRemoteModel, ngayKyDuyetXoaAnTich);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getMaHoSoXoaAnTich() {
        return _maHoSoXoaAnTich;
    }

    @Override
    public void setMaHoSoXoaAnTich(String maHoSoXoaAnTich) {
        _maHoSoXoaAnTich = maHoSoXoaAnTich;

        if (_lichAnXoaAnTichRemoteModel != null) {
            try {
                Class<?> clazz = _lichAnXoaAnTichRemoteModel.getClass();

                Method method = clazz.getMethod("setMaHoSoXoaAnTich",
                        String.class);

                method.invoke(_lichAnXoaAnTichRemoteModel, maHoSoXoaAnTich);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getChuThich() {
        return _chuThich;
    }

    @Override
    public void setChuThich(String chuThich) {
        _chuThich = chuThich;

        if (_lichAnXoaAnTichRemoteModel != null) {
            try {
                Class<?> clazz = _lichAnXoaAnTichRemoteModel.getClass();

                Method method = clazz.getMethod("setChuThich", String.class);

                method.invoke(_lichAnXoaAnTichRemoteModel, chuThich);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getKinhGui() {
        return _kinhGui;
    }

    @Override
    public void setKinhGui(String kinhGui) {
        _kinhGui = kinhGui;

        if (_lichAnXoaAnTichRemoteModel != null) {
            try {
                Class<?> clazz = _lichAnXoaAnTichRemoteModel.getClass();

                Method method = clazz.getMethod("setKinhGui", String.class);

                method.invoke(_lichAnXoaAnTichRemoteModel, kinhGui);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getHinhPhat() {
        return _hinhPhat;
    }

    @Override
    public void setHinhPhat(String hinhPhat) {
        _hinhPhat = hinhPhat;

        if (_lichAnXoaAnTichRemoteModel != null) {
            try {
                Class<?> clazz = _lichAnXoaAnTichRemoteModel.getClass();

                Method method = clazz.getMethod("setHinhPhat", String.class);

                method.invoke(_lichAnXoaAnTichRemoteModel, hinhPhat);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getCoQuanThiHanhAn() {
        return _coQuanThiHanhAn;
    }

    @Override
    public void setCoQuanThiHanhAn(String coQuanThiHanhAn) {
        _coQuanThiHanhAn = coQuanThiHanhAn;

        if (_lichAnXoaAnTichRemoteModel != null) {
            try {
                Class<?> clazz = _lichAnXoaAnTichRemoteModel.getClass();

                Method method = clazz.getMethod("setCoQuanThiHanhAn",
                        String.class);

                method.invoke(_lichAnXoaAnTichRemoteModel, coQuanThiHanhAn);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getSoQuyetDinhThiHanhAn() {
        return _soQuyetDinhThiHanhAn;
    }

    @Override
    public void setSoQuyetDinhThiHanhAn(String soQuyetDinhThiHanhAn) {
        _soQuyetDinhThiHanhAn = soQuyetDinhThiHanhAn;

        if (_lichAnXoaAnTichRemoteModel != null) {
            try {
                Class<?> clazz = _lichAnXoaAnTichRemoteModel.getClass();

                Method method = clazz.getMethod("setSoQuyetDinhThiHanhAn",
                        String.class);

                method.invoke(_lichAnXoaAnTichRemoteModel, soQuyetDinhThiHanhAn);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public Date getNgayQuyetDinhThiHanhAn() {
        return _ngayQuyetDinhThiHanhAn;
    }

    @Override
    public void setNgayQuyetDinhThiHanhAn(Date ngayQuyetDinhThiHanhAn) {
        _ngayQuyetDinhThiHanhAn = ngayQuyetDinhThiHanhAn;

        if (_lichAnXoaAnTichRemoteModel != null) {
            try {
                Class<?> clazz = _lichAnXoaAnTichRemoteModel.getClass();

                Method method = clazz.getMethod("setNgayQuyetDinhThiHanhAn",
                        Date.class);

                method.invoke(_lichAnXoaAnTichRemoteModel,
                    ngayQuyetDinhThiHanhAn);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    @Override
    public String getHoVaTenDoiTuongTienAn() {
        return _hoVaTenDoiTuongTienAn;
    }

    @Override
    public void setHoVaTenDoiTuongTienAn(String hoVaTenDoiTuongTienAn) {
        _hoVaTenDoiTuongTienAn = hoVaTenDoiTuongTienAn;

        if (_lichAnXoaAnTichRemoteModel != null) {
            try {
                Class<?> clazz = _lichAnXoaAnTichRemoteModel.getClass();

                Method method = clazz.getMethod("setHoVaTenDoiTuongTienAn",
                        String.class);

                method.invoke(_lichAnXoaAnTichRemoteModel, hoVaTenDoiTuongTienAn);
            } catch (Exception e) {
                throw new UnsupportedOperationException(e);
            }
        }
    }

    public BaseModel<?> getLichAnXoaAnTichRemoteModel() {
        return _lichAnXoaAnTichRemoteModel;
    }

    public void setLichAnXoaAnTichRemoteModel(
        BaseModel<?> lichAnXoaAnTichRemoteModel) {
        _lichAnXoaAnTichRemoteModel = lichAnXoaAnTichRemoteModel;
    }

    public Object invokeOnRemoteModel(String methodName,
        Class<?>[] parameterTypes, Object[] parameterValues)
        throws Exception {
        Object[] remoteParameterValues = new Object[parameterValues.length];

        for (int i = 0; i < parameterValues.length; i++) {
            if (parameterValues[i] != null) {
                remoteParameterValues[i] = ClpSerializer.translateInput(parameterValues[i]);
            }
        }

        Class<?> remoteModelClass = _lichAnXoaAnTichRemoteModel.getClass();

        ClassLoader remoteModelClassLoader = remoteModelClass.getClassLoader();

        Class<?>[] remoteParameterTypes = new Class[parameterTypes.length];

        for (int i = 0; i < parameterTypes.length; i++) {
            if (parameterTypes[i].isPrimitive()) {
                remoteParameterTypes[i] = parameterTypes[i];
            } else {
                String parameterTypeName = parameterTypes[i].getName();

                remoteParameterTypes[i] = remoteModelClassLoader.loadClass(parameterTypeName);
            }
        }

        Method method = remoteModelClass.getMethod(methodName,
                remoteParameterTypes);

        Object returnValue = method.invoke(_lichAnXoaAnTichRemoteModel,
                remoteParameterValues);

        if (returnValue != null) {
            returnValue = ClpSerializer.translateOutput(returnValue);
        }

        return returnValue;
    }

    @Override
    public void persist() throws SystemException {
        if (this.isNew()) {
            LichAnXoaAnTichLocalServiceUtil.addLichAnXoaAnTich(this);
        } else {
            LichAnXoaAnTichLocalServiceUtil.updateLichAnXoaAnTich(this);
        }
    }

    @Override
    public LichAnXoaAnTich toEscapedModel() {
        return (LichAnXoaAnTich) ProxyUtil.newProxyInstance(LichAnXoaAnTich.class.getClassLoader(),
            new Class[] { LichAnXoaAnTich.class },
            new AutoEscapeBeanHandler(this));
    }

    @Override
    public Object clone() {
        LichAnXoaAnTichClp clone = new LichAnXoaAnTichClp();

        clone.setLichAnXoaAnTichId(getLichAnXoaAnTichId());
        clone.setTienAnId(getTienAnId());
        clone.setNguoiLapHoSoXoaAnTichId(getNguoiLapHoSoXoaAnTichId());
        clone.setNgayLapHoSoXoaAnTich(getNgayLapHoSoXoaAnTich());
        clone.setNguoiYeuCauXoaAnTich(getNguoiYeuCauXoaAnTich());
        clone.setNgayYeuCauXoaAnTich(getNgayYeuCauXoaAnTich());
        clone.setNguoiThucHienXoaAnTichTrongDuLieuID(getNguoiThucHienXoaAnTichTrongDuLieuID());
        clone.setNgayKyDuyetXoaAnTich(getNgayKyDuyetXoaAnTich());
        clone.setMaHoSoXoaAnTich(getMaHoSoXoaAnTich());
        clone.setChuThich(getChuThich());
        clone.setKinhGui(getKinhGui());
        clone.setHinhPhat(getHinhPhat());
        clone.setCoQuanThiHanhAn(getCoQuanThiHanhAn());
        clone.setSoQuyetDinhThiHanhAn(getSoQuyetDinhThiHanhAn());
        clone.setNgayQuyetDinhThiHanhAn(getNgayQuyetDinhThiHanhAn());
        clone.setHoVaTenDoiTuongTienAn(getHoVaTenDoiTuongTienAn());

        return clone;
    }

    @Override
    public int compareTo(LichAnXoaAnTich lichAnXoaAnTich) {
        int value = 0;

        if (getLichAnXoaAnTichId() < lichAnXoaAnTich.getLichAnXoaAnTichId()) {
            value = -1;
        } else if (getLichAnXoaAnTichId() > lichAnXoaAnTich.getLichAnXoaAnTichId()) {
            value = 1;
        } else {
            value = 0;
        }

        value = value * -1;

        if (value != 0) {
            return value;
        }

        return 0;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }

        if (!(obj instanceof LichAnXoaAnTichClp)) {
            return false;
        }

        LichAnXoaAnTichClp lichAnXoaAnTich = (LichAnXoaAnTichClp) obj;

        long primaryKey = lichAnXoaAnTich.getPrimaryKey();

        if (getPrimaryKey() == primaryKey) {
            return true;
        } else {
            return false;
        }
    }

    @Override
    public int hashCode() {
        return (int) getPrimaryKey();
    }

    @Override
    public String toString() {
        StringBundler sb = new StringBundler(33);

        sb.append("{lichAnXoaAnTichId=");
        sb.append(getLichAnXoaAnTichId());
        sb.append(", tienAnId=");
        sb.append(getTienAnId());
        sb.append(", nguoiLapHoSoXoaAnTichId=");
        sb.append(getNguoiLapHoSoXoaAnTichId());
        sb.append(", ngayLapHoSoXoaAnTich=");
        sb.append(getNgayLapHoSoXoaAnTich());
        sb.append(", nguoiYeuCauXoaAnTich=");
        sb.append(getNguoiYeuCauXoaAnTich());
        sb.append(", ngayYeuCauXoaAnTich=");
        sb.append(getNgayYeuCauXoaAnTich());
        sb.append(", nguoiThucHienXoaAnTichTrongDuLieuID=");
        sb.append(getNguoiThucHienXoaAnTichTrongDuLieuID());
        sb.append(", ngayKyDuyetXoaAnTich=");
        sb.append(getNgayKyDuyetXoaAnTich());
        sb.append(", maHoSoXoaAnTich=");
        sb.append(getMaHoSoXoaAnTich());
        sb.append(", chuThich=");
        sb.append(getChuThich());
        sb.append(", kinhGui=");
        sb.append(getKinhGui());
        sb.append(", hinhPhat=");
        sb.append(getHinhPhat());
        sb.append(", coQuanThiHanhAn=");
        sb.append(getCoQuanThiHanhAn());
        sb.append(", soQuyetDinhThiHanhAn=");
        sb.append(getSoQuyetDinhThiHanhAn());
        sb.append(", ngayQuyetDinhThiHanhAn=");
        sb.append(getNgayQuyetDinhThiHanhAn());
        sb.append(", hoVaTenDoiTuongTienAn=");
        sb.append(getHoVaTenDoiTuongTienAn());
        sb.append("}");

        return sb.toString();
    }

    @Override
    public String toXmlString() {
        StringBundler sb = new StringBundler(52);

        sb.append("<model><model-name>");
        sb.append("qldc.pm.tienan.model.LichAnXoaAnTich");
        sb.append("</model-name>");

        sb.append(
            "<column><column-name>lichAnXoaAnTichId</column-name><column-value><![CDATA[");
        sb.append(getLichAnXoaAnTichId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>tienAnId</column-name><column-value><![CDATA[");
        sb.append(getTienAnId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>nguoiLapHoSoXoaAnTichId</column-name><column-value><![CDATA[");
        sb.append(getNguoiLapHoSoXoaAnTichId());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ngayLapHoSoXoaAnTich</column-name><column-value><![CDATA[");
        sb.append(getNgayLapHoSoXoaAnTich());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>nguoiYeuCauXoaAnTich</column-name><column-value><![CDATA[");
        sb.append(getNguoiYeuCauXoaAnTich());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ngayYeuCauXoaAnTich</column-name><column-value><![CDATA[");
        sb.append(getNgayYeuCauXoaAnTich());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>nguoiThucHienXoaAnTichTrongDuLieuID</column-name><column-value><![CDATA[");
        sb.append(getNguoiThucHienXoaAnTichTrongDuLieuID());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ngayKyDuyetXoaAnTich</column-name><column-value><![CDATA[");
        sb.append(getNgayKyDuyetXoaAnTich());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>maHoSoXoaAnTich</column-name><column-value><![CDATA[");
        sb.append(getMaHoSoXoaAnTich());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>chuThich</column-name><column-value><![CDATA[");
        sb.append(getChuThich());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>kinhGui</column-name><column-value><![CDATA[");
        sb.append(getKinhGui());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hinhPhat</column-name><column-value><![CDATA[");
        sb.append(getHinhPhat());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>coQuanThiHanhAn</column-name><column-value><![CDATA[");
        sb.append(getCoQuanThiHanhAn());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>soQuyetDinhThiHanhAn</column-name><column-value><![CDATA[");
        sb.append(getSoQuyetDinhThiHanhAn());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>ngayQuyetDinhThiHanhAn</column-name><column-value><![CDATA[");
        sb.append(getNgayQuyetDinhThiHanhAn());
        sb.append("]]></column-value></column>");
        sb.append(
            "<column><column-name>hoVaTenDoiTuongTienAn</column-name><column-value><![CDATA[");
        sb.append(getHoVaTenDoiTuongTienAn());
        sb.append("]]></column-value></column>");

        sb.append("</model>");

        return sb.toString();
    }
}
